<?php
declare(strict_types=1);

namespace app\admin\controller;

use app\basic\BaseController;
use support\Request;
use app\admin\logic\system\SystemUploadfileLogic;
use support\Response;

/**
 * 文件上传
 */
class UploadController extends BaseController
{
    private $config;

    /**
     * 构造方法
     */
    public function __construct()
    {
        parent::__construct();
        // 存储配置信息
        $this->logic = new SystemUploadfileLogic();
    }

    /**
     * 上传文件
     * @param Request $request
     * @return \support\Response
     */
    public function upload(Request $request)
    {
       return $this->success($this->logic->uploadBase());
    }


}